﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Common.XmlConfig
{
    public class ConfigList<T>:List<T> where T:BaseConfig
    {
        public T this[string Key]
        {
            get
            {
                var result = this.Where(i => i.Key == Key);
                if (result.Count() > 0) { return result.First(); } else { return null; }
            }
        }
    }
}
